import { createStore } from "vuex";
const store = createStore({
  state() {
    return {
      count: 0,
      goodList:[]
    };
  },
  mutations: {
    addToCart(state, value) {
      state.goodList.push(value)
      state.count++;
      
    },
  },
});

export default store;
